package jsu.xxy.coffee3.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import jsu.xxy.coffee3.domain.RegistNoPassword;
import jsu.xxy.coffee3.domain.RegisterNoId;
import jsu.xxy.coffee3.domain.RegisterRequest;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author 张从轩
* @description 针对表【register_request(注册请求信息表)】的数据库操作Mapper
* @createDate 2023-06-03 06:43:10
* @Entity jsu.xxy.coffee3.domain.RegisterRequest
*/
@Mapper
public interface RegisterRequestMapper extends BaseMapper<RegisterRequest> {

    public List<RegistNoPassword> getAllInform();

    @Select("select * from register_request where phonenumber = #{phone}")
    RegisterRequest selectByphone_number(@Param("phone") String phone);

    void insertNoId(RegisterNoId registerNoId);

}
